package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 职位信息对象 t_position
 * 
 * @author 徐国洋
 * @date 2025-02-23
 */
public class TPosition extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 职位主键 */
    @Excel(name = "职位主键")
    private Long id;

    /** 职位名称 */
    @Excel(name = "职位名称")
    private String name;

    /** 职位工资 */
    @Excel(name = "职位工资")
    private BigDecimal salary;

    /** 部门外键 */
    @Excel(name = "部门外键")
    private Long departmentid;

    private TDepartment tdepartment;

    public TDepartment getTdepartment() {
        return tdepartment;
    }

    public void setTdepartment(TDepartment tdepartment) {
        this.tdepartment = tdepartment;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSalary(BigDecimal salary) 
    {
        this.salary = salary;
    }

    public BigDecimal getSalary() 
    {
        return salary;
    }
    public void setDepartmentid(Long departmentid) 
    {
        this.departmentid = departmentid;
    }

    public Long getDepartmentid() 
    {
        return departmentid;
    }

    @Override
    public String toString() {
        return "TPosition{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", salary=" + salary +
                ", departmentid=" + departmentid +
                ", tdepartment=" + tdepartment +
                '}';
    }
}
